﻿using Ewell.BizComponent.UI.Core.VievModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ewell.BizComponent.UI.OutSetl.ViewModel
{
    /// <summary>
    /// 处方费用明细
    /// </summary>
    public class PresDetailVm:ViewModelBase
    {
        /// <summary>
        /// 处方费用明细标识
        /// </summary>
        private string _presDetailId;
        public string presDetailId
        {
            get => _presDetailId;
            set
            {
                if (_presDetailId != value)
                {
                    _presDetailId = value;
                    OnPropertyChanged(nameof(presDetailId));
                }
            }
        }
        /// <summary>
        /// 费用类别标识
        /// </summary>
        private string _fareCategoryId;

        public string fareCategoryId
        {
            get => _fareCategoryId;
            set
            {
                if (_fareCategoryId != value)
                {
                    _fareCategoryId = value;
                    OnPropertyChanged(nameof(fareCategoryId));
                }
            }
        }

        /// <summary>
        /// 费用类别名称
        /// </summary>
        private string _fareCategoryName;

        public string fareCategoryName
        {
            get => _fareCategoryName;
            set
            {
                if (_fareCategoryName != value)
                {
                    _fareCategoryName = value;
                    OnPropertyChanged(nameof(fareCategoryName));
                }
            }
        }

        /// <summary>
        /// 处方费用明细外键
        /// </summary>
        private string _presDetailFId;

        public string presDetailFId
        {
            get => _presDetailFId;
            set
            {
                if (_presDetailFId != value)
                {
                    _presDetailFId = value;
                    OnPropertyChanged(nameof(presDetailFId));
                }
            }
        }

        /// <summary>
        /// 商品标识
        /// </summary>
        private string _commodityID;

        public string commodityID
        {
            get => _commodityID;
            set
            {
                if (_commodityID != value)
                {
                    _commodityID = value;
                    OnPropertyChanged(nameof(commodityID));
                }
            }
        }

        /// <summary>
        /// 商品名称
        /// </summary>
        private string _commodityName;

        public string commodityName
        {
            get => _commodityName;
            set
            {
                if (_commodityName != value)
                {
                    _commodityName = value;
                    OnPropertyChanged(nameof(commodityName));
                }
            }
        }

        /// <summary>
        /// 商品类型代码
        /// </summary>
        private string _commodityTypeCode;

        public string commodityTypeCode
        {
            get => _commodityTypeCode;
            set
            {
                if (_commodityTypeCode != value)
                {
                    _commodityTypeCode = value;
                    OnPropertyChanged(nameof(commodityTypeCode));
                }
            }
        }

        /// <summary>
        /// 商品规格
        /// </summary>
        private string _commoditySpec;

        public string commoditySpec
        {
            get => _commoditySpec;
            set
            {
                if (_commoditySpec != value)
                {
                    _commoditySpec = value;
                    OnPropertyChanged(nameof(commoditySpec));
                }
            }
        }

        /// <summary>
        /// 开立数量
        /// </summary>
        private decimal? _quatityPres;

        public decimal? quatityPres
        {
            get => _quatityPres;
            set
            {
                if (_quatityPres != value)
                {
                    _quatityPres = value;
                    OnPropertyChanged(nameof(quatityPres));
                }
            }
        }

        /// <summary>
        /// 已收费数量
        /// </summary>
        private decimal? _quatityCharged;

        public decimal? quatityCharged
        {
            get => _quatityCharged;
            set
            {
                if (_quatityCharged != value)
                {
                    _quatityCharged = value;
                    OnPropertyChanged(nameof(quatityCharged));
                }
            }
        }

        /// <summary>
        /// 已退费数量
        /// </summary>
        private decimal? _quatityRefunded;

        public decimal? quatityRefunded
        {
            get => _quatityRefunded;
            set
            {
                if (_quatityRefunded != value)
                {
                    _quatityRefunded = value;
                    OnPropertyChanged(nameof(quatityRefunded));
                }
            }
        }

        /// <summary>
        /// 已确认数量
        /// </summary>
        private decimal? _quatityConfirmed;

        public decimal? quatityConfirmed
        {
            get => _quatityConfirmed;
            set
            {
                if (_quatityConfirmed != value)
                {
                    _quatityConfirmed = value;
                    OnPropertyChanged(nameof(quatityConfirmed));
                }
            }
        }

        /// <summary>
        /// 商品单位
        /// </summary>
        private string _unitName;

        public string unitName
        {
            get => _unitName;
            set
            {
                if (_unitName != value)
                {
                    _unitName = value;
                    OnPropertyChanged(nameof(unitName));
                }
            }
        }

        /// <summary>
        /// 商品原价
        /// </summary>
        private decimal? _originalPrice;

        public decimal? originalPrice
        {
            get => _originalPrice;
            set
            {
                if (_originalPrice != value)
                {
                    _originalPrice = value;
                    OnPropertyChanged(nameof(originalPrice));
                }
            }
        }

        /// <summary>
        /// 销售单价
        /// </summary>
        private decimal? _itemPrice;

        public decimal? itemPrice
        {
            get => _itemPrice;
            set
            {
                if (_itemPrice != value)
                {
                    _itemPrice = value;
                    OnPropertyChanged(nameof(itemPrice));
                }
            }
        }

        /// <summary>
        /// 原始金额
        /// </summary>
        private decimal? _originalAmount;

        public decimal? originalAmount
        {
            get => _originalAmount;
            set
            {
                if (_originalAmount != value)
                {
                    _originalAmount = value;
                    OnPropertyChanged(nameof(originalAmount));
                }
            }
        }

        /// <summary>
        /// 销售金额
        /// </summary>
        private decimal? _payAmount;

        public decimal? payAmount
        {
            get => _payAmount;
            set
            {
                if (_payAmount != value)
                {
                    _payAmount = value;
                    OnPropertyChanged(nameof(payAmount));
                }
            }
        }

        /// <summary>
        /// 医保编码
        /// </summary>
        private string _insurCommodityNo;

        public string insurCommodityNo
        {
            get => _insurCommodityNo;
            set
            {
                if (_insurCommodityNo != value)
                {
                    _insurCommodityNo = value;
                    OnPropertyChanged(nameof(insurCommodityNo));
                }
            }
        }

        /// <summary>
        /// 医保名称
        /// </summary>
        private string _insurCommodityName;

        public string insurCommodityName
        {
            get => _insurCommodityName;
            set
            {
                if (_insurCommodityName != value)
                {
                    _insurCommodityName = value;
                    OnPropertyChanged(nameof(insurCommodityName));
                }
            }
        }

        /// <summary>
        /// 销售单位系数
        /// </summary>
        private string _retailUnitFactor;

        public string retailUnitFactor
        {
            get => _retailUnitFactor;
            set
            {
                if (_retailUnitFactor != value)
                {
                    _retailUnitFactor = value;
                    OnPropertyChanged(nameof(retailUnitFactor));
                }
            }
        }

        /// <summary>
        /// 医保拆零上传标志
        /// </summary>
        private string _insurMinUploadFlag;

        public string insurMinUploadFlag
        {
            get => _insurMinUploadFlag;
            set
            {
                if (_insurMinUploadFlag != value)
                {
                    _insurMinUploadFlag = value;
                    OnPropertyChanged(nameof(insurMinUploadFlag));
                }
            }
        }

        /// <summary>
        /// 中药使用方式代码
        /// </summary>
        private string _tcmDrugUsedWayCoding;

        public string tcmDrugUsedWayCoding
        {
            get => _tcmDrugUsedWayCoding;
            set
            {
                if (_tcmDrugUsedWayCoding != value)
                {
                    _tcmDrugUsedWayCoding = value;
                    OnPropertyChanged(nameof(tcmDrugUsedWayCoding));
                }
            }
        }

        /// <summary>
        /// 中药使用方式代码描述
        /// </summary>
        private string _tcmDrugUsedWayCodingDesc;

        public string tcmDrugUsedWayCodingDesc
        {
            get => _tcmDrugUsedWayCodingDesc;
            set
            {
                if (_tcmDrugUsedWayCodingDesc != value)
                {
                    _tcmDrugUsedWayCodingDesc = value;
                    OnPropertyChanged(nameof(tcmDrugUsedWayCodingDesc));
                }
            }
        }

        /// <summary>
        /// 需要上传标志
        /// </summary>
        private string _needUploadFlag;

        public string needUploadFlag
        {
            get => _needUploadFlag;
            set
            {
                if (_needUploadFlag != value)
                {
                    _needUploadFlag = value;
                    OnPropertyChanged(nameof(needUploadFlag));
                }
            }
        }

        /// <summary>
        /// 医保审核状态
        /// </summary>
        private string _medicareCheckStatus;

        public string medicareCheckStatus
        {
            get => _medicareCheckStatus;
            set
            {
                if (_medicareCheckStatus != value)
                {
                    _medicareCheckStatus = value;
                    OnPropertyChanged(nameof(medicareCheckStatus));
                }
            }
        }

        /// <summary>
        /// 儿童加收标志
        /// </summary>
        private string _babyAddFlag;

        public string babyAddFlag
        {
            get => _babyAddFlag;
            set
            {
                if (_babyAddFlag != value)
                {
                    _babyAddFlag = value;
                    OnPropertyChanged(nameof(babyAddFlag));
                }
            }
        }

        /// <summary>
        /// 业务来源代码
        /// </summary>
        private string _bizSourceCoding;

        public string bizSourceCoding
        {
            get => _bizSourceCoding;
            set
            {
                if (_bizSourceCoding != value)
                {
                    _bizSourceCoding = value;
                    OnPropertyChanged(nameof(bizSourceCoding));
                }
            }
        }

    }
}
